<?php if ($gtAccount != NULL){ ?>
<h5><b>Employee Accounts</b></h5>

<!-- select from all current employees -->
<h1><b>Select an Employee:</b> </h1><br />
<?php echo $this->Form->create(null, array('action' => 'modifyEmployee'));?>
<select name ="empId">
<?php foreach($emps as $emp): ?>
	<option value="<?php echo $emp['Employee']['employee_id']?>"><?php echo $emp['Employee']['name']; echo " ("; echo $emp['Employee']['employee_id']; echo ")";?></option>
<?php endforeach; ?>
</select>
<br/>
<br/>
<!-- select action -->
<h1><b>Select an Action:</b> </h1><br />
<select name="empAction">
	<option value = "1">Edit</option>
	<option value = "0">Delete</option>
</select>
<?php echo $this->Form->end("Modify");?>



<!-- add new employee -->
<h1><b>Create New Employee:</b> </h1>
<?php echo $this->Form->create(false,array('action'=>'addEmployee'));
echo $this->Form->input('name', array(
        'type' => 'text'
    ));
echo $this->Form->input('id',array(
        'type' => 'text'
    ));
echo $this->Form->end('Add'); ?>

<?php } else{ ?>
<h1> Invalid Login </h1>
<?php }?>

    
